package yf.mall.entity;


import lombok.Setter;
import lombok.Getter;

import java.io.Serializable;
import java.util.Date;


/**
 * 地址实体
 * 表名 address
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Mon Aug 26 16:40:35 CST 2019
 */
@Setter
@Getter
public class AddressEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    //
    private Long id;
    //用户ID
    private Long userId;
    //省
    private String province;
    //市
    private String city;
    //县
    private String county;
    //电话
    private String mobile;
    //收货人
    private String name;
    //详细地址
    private String detail;
    //ENUM-默认:"FALSE-否","TRUE-是"
    private Boolean def;

    public String getInfo() {
        return province +" " +city+" " + county +" " + detail;
    }

//    public String getAddress(){
//        return province + city + detail + " " + mobile + name;
//    }

    public String getUserName(){
        return name;
    }

    public AddressEntity() {

    }

}
